package com.iims.flowable.flow.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iims.common.utils.uuid.IdUtils;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName act_fo_form_definition
 */
@Deprecated
@TableName(value = "act_fo_form_definition")
@NoArgsConstructor
@Data
public class ActFoFormDefinition implements Serializable {
    /**
     *
     */
    @TableId(value = "ID_", type = IdType.INPUT)
    private String id;

    /**
     *
     */
    @TableField("NAME_")
    private String name;

    /**
     *
     */
    @TableField("VERSION_")
    private Integer version;

    /**
     *
     */
    @TableField("KEY_")
    private String key;

    /**
     *
     */
    @TableField("CATEGORY_")
    private String category;

    /**
     *
     */
    @TableField("DEPLOYMENT_ID_")
    private String deploymentId;

    /**
     *
     */
    @TableField("TENANT_ID_")
    private String tenantId;

    /**
     *
     */
    @TableField("RESOURCE_NAME_")
    private String resourceName;

    /**
     *
     */
    @TableField("DESCRIPTION_")
    private String description;

    public ActFoFormDefinition(FlowableForm flowableForm) {
        id = IdUtils.simpleUUID();
        name = flowableForm.getFormName();
        key = flowableForm.getFormKey();
        resourceName = flowableForm.getFormName();
    }

}